import Request from '@/axios/request'

export function getEquipment(params) {
  return Request.get('equipment', { params })
}

export function createEquipment() {
  return Request.get('equipment/create')
}

export function storeEquipment(data) {
  return Request.post('equipment', data)
}

export function updateEquipment(id, data) {
  return Request.put(`equipment/${id}`, data)
}

export function editEquipment(id) {
  return Request.get(`equipment/${id}/edit`)
}

export function destroyEquipment(id) {
  return Request.delete(`equipment/${id}`)
}
